home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: nntp.coast.net!torn!nott!emr1!jagrant
- From: jagrant@emr1.emr.ca (John Grant)
- Subject: Re: Unbuffered character input...
- Message-ID: <DM2D7s.3EI@emr1.emr.ca>
- Organization: Energy, Mines, and Resources, Ottawa
- References: <Pine.SGI.3.91.960129190205.27936A-100000@tahiti.cs.unm.edu> <4elf0t$5vd@ixnews2.ix.netcom.com> <4em2oaINN54i@keats.ugrad.cs.ubc.ca>
- Date: Wed, 31 Jan 1996 21:04:40 GMT
-
- In article <4em2oaINN54i@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
- >In article <4elf0t$5vd@ixnews2.ix.netcom.com>,
- >Kevin Landry <kevgar@ix.netcom.com> wrote:
- >>Caleb Haley <chaley@tahiti.cs.unm.edu> wrote:
- >>
- >>>Greetings!
- >>
- >>>Just curious--is there a way to do unbuffered character input in c?
- >>>i.e. getting just one character without waiting for a carriage return
- >>>(enter)...
- >>
- >>I believe there are two commands in C that do this. getch() is
- >>unbuffered input without echo and getche() has the echo. Hope this
- >>helps.
- >
- >Sigh. C doesn't have commands. C has statements. The getch() and getche() that
- >you describe are library functions---system-specific library functions,
- >moreover. They are not part of the standard library.
- >
- >To those of you who have been regulars of this group for a while, please bear
- >with me: I will surely kick the habit of responding to clueless DOS
- >programmers before long. In the past week, I've seen the stupid "how do I get
- >single characters from the keyboard" asked about thirty times! The replies
- >are often worse than the questions.
-
- Would you be as insulting to 'clueless UNIX programmers' who
- asked the same question or provided a similar answer?
- --
- John A. Grant jagrant@emr1.emr.ca
- Airborne Geophysics
- Geological Survey of Canada, Ottawa
-